﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DataModels.Models.DHIS
{
    public class ReportDataSetLink
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Index (IsUnique = true)]
        public int ReportId { get; set; }

        [Required]
        [StringLength(50)]
        public string DataSetId { get; set; }

        [ForeignKey("ReportId")]
        public virtual Report Report { get; set; }

        public virtual List<ReportDataSetElementsLink> ReportDataSetElementsLinks { get; set; }
    }
}
